package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.utils.Age;

/*
客服类:专门和用户打交道的
1.键盘接受用户录入的数据
2.与业务员完成具体的业务功能影响
3.根据业务员反馈的信息,提交各用户
 */
public class OtherStudentController extends BaseStudentController {
    //用户输入创建学生对象
    public Student getStudent(String sid) {
        System.out.println("请输入姓名:");
        String name = sc.next();
      /*  System.out.println("请输入年龄:");
        String age = sc.next();*/
        System.out.println("请输入生日:");
        String birthday = sc.next();

        Student student = new Student(sid, name, Age.getAgeByBirthday(birthday)+"", birthday);

        return student;
    }
}
